{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "import warnings\n",
    "warnings.filterwarnings('ignore')\n",
    "import os"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "__file__ = 'InceptionResNetV2-Xception-8.30.3-0'\n",
    "os.environ[\"CUDA_VISIBLE_DEVICES\"] = \"0\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "from keras.preprocessing.image import ImageDataGenerator\n",
    "from glob import glob\n",
    "import tensorflow as tf\n",
    "import numpy as np\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "import keras\n",
    "from keras.applications.inception_v3 import InceptionV3\n",
    "from keras.applications.xception import Xception\n",
    "from keras.applications.resnet50 import ResNet50\n",
    "from keras_applications.resnext import ResNeXt50\n",
    "from keras.applications.nasnet import NASNetLarge\n",
    "from keras.applications.inception_resnet_v2 import InceptionResNetV2\n",
    "from keras.models import *\n",
    "from keras.layers import *\n",
    "from keras.optimizers import *\n",
    "from keras.callbacks import *\n",
    "import PIL\n",
    "import time\n",
    "\n",
    "def preprocess_img(x):\n",
    "    x = x / 127.5\n",
    "    x -= 1.\n",
    "    return x"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [],
   "source": [
    "path_data = '../garbage_classify/train_data'\n",
    "batch_size = 16\n",
    "img_size = 299\n",
    "img_width = img_size\n",
    "img_height = img_size\n",
    "random_seed = 201908\n",
    "path_data_train = '../tmp/data_train/'\n",
    "path_data_valid = '../tmp/data_valid/'\n",
    "labels_file = '../tmp/labels_raw.csv'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f9526dbd6d8>"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAX0AAAEGCAYAAACJnEVTAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAATcElEQVR4nO3df5Bd5X3f8fcHIaRSCNYvGIIgghZTgcEUVgTHPyJnXJBwO0CGcUlJrYl/EBwntTNTxqTjCbE9dIynSRPZAVutKWRqQzC2sVpTI0EBN40BixRj8VMqhtESQDKyMcUGS/DtH/csvVlWP3ZX0r3q837N7Nxzn/Occ7/7jPS5Z59z7rmpKiRJbThg0AVIkvYdQ1+SGmLoS1JDDH1JaoihL0kNOXDQBezM/Pnza9GiRYMuQ5L2K/fdd98Pq2rBROuGOvQXLVrEunXrBl2GJO1Xkjy5o3VO70hSQwx9SWqIoS9JDRnqOX1JGm/btm2Mjo7y0ksvDbqUgZs9ezYLFy5k5syZu72NoS9pvzI6Osqhhx7KokWLSDLocgamqnjuuecYHR3l2GOP3e3tnN6RtF956aWXmDdvXtOBD5CEefPmTfovHkNf0n6n9cAfM5VxMPQlqSGGviRNwcqVK1m8eDEXXXTRoEuZFE/kStIUXHXVVdx2220sXLhw0KVMikf6kjRJl1xyCY8//jjLly/nsMMO433vex9Lly7luOOOY+XKla/1O++88zj99NM56aSTWLVq1WvthxxyCJdeeiknnXQS73rXu7j33ntf23716tUAvPLKK1x66aUsWbKEU045hS984Qt7pPYM89cljoyMlPfekdTv4YcfZvHixQB84r88yEN/+5M9uv8Tf/EXuPyfnbTLfmP3Bvvc5z7HmjVruOOOO3jhhRc44YQTeOaZZ5g5cyZbt25l7ty5/OxnP2PJkiXcddddr115dMstt7B8+XLOP/98XnzxRb75zW/y0EMPsWLFCu6//35WrVrF5s2b+fjHP87LL7/MW9/6Vr7yla+87vLM/vEYk+S+qhqZqG6ndyRpmt797ncza9YsZs2axeGHH86zzz7LwoULWblyJV//+tcB2LRpExs2bGDevHkcdNBBLFu2DICTTz6ZWbNmMXPmTE4++WSeeOIJANasWcMDDzzATTfdBMDzzz/Phg0bJnVN/kQMfUn7rd05It8XZs2a9dryjBkz2L59O3feeSe33XYb3/nOdzj44INZunTpa9fUz5w587XLLQ844IDXtj/ggAPYvn070Pvw1Wc/+1nOPvvsPVqrc/qStBc8//zzzJkzh4MPPphHHnmEu+++e1Lbn3322Vx99dVs27YNgMcee4wXX3xx2nV5pC9Je8GyZcv4/Oc/z+LFiznhhBM488wzJ7X9Bz7wAZ544glOO+00qooFCxZw8803T7suT+RK2q9MdOKyZZM9kev0jiQ1xNCXpIYY+pL2O8M8Lb0vTWUcDH1J+5XZs2fz3HPPNR/8Y/fTnz179qS28+odSfuVhQsXMjo6ypYtWwZdysCNfXPWZBj6kvYrM2fOnPanUlvm9I4kNcTQl6SG7DL0k1yTZHOS9X1tc5OsTbKhe5wzbpslSbYnuaCvbUXXf0OSFXv215Ak7Y7dOdK/Flg2ru0y4PaqOh64vXsOQJIZwJXAmr62ucDlwC8DZwCXj3+jkCTtfbsM/ar6NrB1XPO5wHXd8nXAeX3rfg/4KrC5r+1sYG1Vba2qHwFref0biSRpL5vqnP4RVfV0t/wMcARAkqOA84Grx/U/CtjU93y0a3udJBcnWZdknZdkSdKeNe0TudX7hMTYpyT+FPhYVb06jf2tqqqRqhpZsGDBdMuTJPWZ6nX6zyY5sqqeTnIk/28qZwS4oftygPnAOUm2A08BS/u2XwjcOcXXliRN0VSP9FcDY1fgrAC+AVBVx1bVoqpaBNwE/E5V3QzcCpyVZE53Avesrk2StA/t8kg/yfX0jtLnJxmldxXOp4Ebk7wfeBJ4z872UVVbk3wK+G7X9MmqGn9yWJK0l/klKpL0/xm/REWSBBj6ktQUQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kN2WXoJ7kmyeYk6/va5iZZm2RD9zina78oyQNJvp/kr5O8uW+bZUkeTbIxyWV759eRJO3M7hzpXwssG9d2GXB7VR0P3N49B/gB8KtVdTLwKWAVQJIZwJ8Dy4ETgd9IcuK0q5ckTcouQ7+qvg1sHdd8LnBdt3wdcF7X96+r6kdd+93Awm75DGBjVT1eVT8Hbuj2IUnah6Y6p39EVT3dLT8DHDFBn/cD/61bPgrY1LdutGuTJO1DB053B1VVSaq/Lck76YX+2ya7vyQXAxcDHHPMMdMtT5LUZ6pH+s8mORKge9w8tiLJKcB/BM6tque65qeAo/u2X9i1vU5VraqqkaoaWbBgwRTLkyRNZKqhvxpY0S2vAL4BkOQY4GvAv6yqx/r6fxc4PsmxSQ4CLuz2IUnah3Y5vZPkemApMD/JKHA58GngxiTvB54E3tN1/0NgHnBVEoDt3VH79iS/C9wKzACuqaoH9/QvI0nauVTVrnsNyMjISK1bt27QZUjSfiXJfVU1MtE6P5ErSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDdhn6Sa5JsjnJ+r62uUnWJtnQPc7p2pNkZZKNSR5IclrfNiu6/huSrNg7v44kaWd250j/WmDZuLbLgNur6njg9u45wHLg+O7nYuBq6L1JAJcDvwycAVw+9kYhSdp3DtxVh6r6dpJF45rPBZZ2y9cBdwIf69r/oqoKuDvJG5Ic2fVdW1VbAZKspfdGcv3OXvvxLS/yz7/wnd38VSRJuzLVOf0jqurpbvkZ4Ihu+ShgU1+/0a5tR+2vk+TiJOuSrNu2bdsUy5MkTWSXR/q7UlWVpPZEMd3+VgGrAEZGRuovf/ste2rXktSEGy/Z8bqpHuk/203b0D1u7tqfAo7u67ewa9tRuyRpH5pq6K8Gxq7AWQF8o6/9vd1VPGcCz3fTQLcCZyWZ053APatrkyTtQ7uc3klyPb0TsfOTjNK7CufTwI1J3g88Cbyn634LcA6wEfgp8FsAVbU1yaeA73b9Pjl2UleStO+kd6HNcBoZGal169YNugxJ2q8kua+qRiZa5ydyJakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkOmFfpJPpJkfZIHk3y0azs1yd1J7k+yLskZXXuSrEyyMckDSU7bE7+AJGn3TTn0k7wJ+CBwBvBm4J8m+YfAZ4BPVNWpwB92zwGWA8d3PxcDV0+jbknSFEznSH8xcE9V/bSqtgN3Ab8OFPALXZ/DgL/tls8F/qJ67gbekOTIaby+JGmSDpzGtuuBK5LMA34GnAOsAz4K3Jrk39F7U/mVrv9RwKa+7Ue7tqenUYMkaRKmfKRfVQ8DVwJrgG8B9wOvAB8Cfr+qjgZ+H/jiZPab5OLuXMC6LVu2TLU8SdIEpnUit6q+WFWnV9U7gB8BjwErgK91Xb5Cb84f4Cng6L7NF3Zt4/e5qqpGqmpkwYIF0ylPkjTOdK/eObx7PIbefP6X6c3h/2rX5deADd3yauC93VU8ZwLPV5VTO5K0D01nTh/gq92c/jbgw1X14yQfBP4syYHAS/Su1AG4hd68/0bgp8BvTfO1JUmTNK3Qr6q3T9D2V8DpE7QX8OHpvJ4kaXr8RK4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWqIoS9JDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ2ZVugn+UiS9UkeTPLRvvbfS/JI1/6ZvvY/SLIxyaNJzp7Oa0uSJu/AqW6Y5E3AB4EzgJ8D30ryX4GjgXOBN1fVy0kO7/qfCFwInAT8InBbkjdW1SvT/B0kSbtpOkf6i4F7quqnVbUduAv4deBDwKer6mWAqtrc9T8XuKGqXq6qHwAb6b1hSJL2kemE/nrg7UnmJTkYOIfeUf4bu/Z7ktyVZEnX/yhgU9/2o13b35Hk4iTrkqzbsmXLNMqTJI035emdqno4yZXAGuBF4H7glW6fc4EzgSXAjUmOm8R+VwGrAEZGRmqq9UmSXm9aJ3Kr6otVdXpVvQP4EfAYvSP4r1XPvcCrwHzgKXp/CYxZ2LVJkvaR6V69M3aS9hh68/lfBm4G3tm1vxE4CPghsBq4MMmsJMcCxwP3Tuf1JUmTM+Xpnc5Xk8wDtgEfrqofJ7kGuCbJenpX9ayoqgIeTHIj8BCwvevvlTuStA9NK/Sr6u0TtP0c+M0d9L8CuGI6rylJmjo/kStJDTH0Jakhhr4kNcTQl6SGGPqS1BBDX5IaYuhLUkMMfUlqiKEvSQ0x9CWpIYa+JDXE0Jekhhj6ktQQQ1+SGmLoS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUEENfkhpi6EtSQwx9SWpIqmrQNexQkheARwddx26aD/xw0EXsJmvdO6x177DWyfulqlow0YoD93Ulk/RoVY0MuojdkWSdte551rp3WOvesT/U6vSOJDXE0Jekhgx76K8adAGTYK17h7XuHda6dwx9rUN9IleStGcN+5G+JGkPMvQlqSFDG/pJliV5NMnGJJcNup6dSfJEku8nuT/JukHX0y/JNUk2J1nf1zY3ydokG7rHOYOsccwOav2jJE91Y3t/knMGWeOYJEcnuSPJQ0keTPKRrn2oxnYndQ7duCaZneTeJN/rav1E135sknu6LPjLJAcNca3XJvlB37ieOuhaX6eqhu4HmAH8b+A44CDge8CJg65rJ/U+AcwfdB07qO0dwGnA+r62zwCXdcuXAVcOus6d1PpHwL8edG0T1HokcFq3fCjwGHDisI3tTuocunEFAhzSLc8E7gHOBG4ELuzaPw98aIhrvRa4YND17exnWI/0zwA2VtXjVfVz4Abg3AHXtF+qqm8DW8c1nwtc1y1fB5y3T4vagR3UOpSq6umq+ptu+QXgYeAohmxsd1Ln0Kme/9M9ndn9FPBrwE1d+8DHFHZa69Ab1tA/CtjU93yUIf2H2ilgTZL7klw86GJ2wxFV9XS3/AxwxCCL2Q2/m+SBbvpnKKai+iVZBPxjekd7Qzu24+qEIRzXJDOS3A9sBtbS+4v/x1W1vesyNFkwvtaqGhvXK7px/fdJZg2wxAkNa+jvb95WVacBy4EPJ3nHoAvaXdX7+3SYj1CuBv4BcCrwNPDHgy3n70pyCPBV4KNV9ZP+dcM0thPUOZTjWlWvVNWpwEJ6f/H/owGXtEPja03yJuAP6NW8BJgLfGyAJU5oWEP/KeDovucLu7ahVFVPdY+bga/T+8c6zJ5NciRA97h5wPXsUFU92/3nehX4DwzR2CaZSS9Iv1RVX+uah25sJ6pzmMcVoKp+DNwBvAV4Q5Kx+4QNXRb01bqsm06rqnoZ+E8M2bjC8Ib+d4Hju7P2BwEXAqsHXNOEkvz9JIeOLQNnAet3vtXArQZWdMsrgG8MsJadGgvQzvkMydgmCfBF4OGq+pO+VUM1tjuqcxjHNcmCJG/olv8e8E/onYO4A7ig6zbwMYUd1vpI3xt+6J17GPi4jje0n8jtLiH7U3pX8lxTVVcMuKQJJTmO3tE99O5a+uVhqjXJ9cBSerd8fRa4HLiZ3hURxwBPAu+pqoGfQN1BrUvpTUEUvaukfrtvznxgkrwN+B/A94FXu+Z/Q2++fGjGdid1/gZDNq5JTqF3onYGvQPSG6vqk93/sRvoTZf8L+A3uyPpgdlJrf8dWEDv6p77gUv6TvgOhaENfUnSnjes0zuSpL3A0Jekhhj6ktQQQ1+SGmLoS1JDDH2pT5KdXl6XZFH/XUB3c5/XJrlg1z2lvc/Ql6SGGPrSBJIckuT2JH/TfVdC/11eD0zypSQPJ7kpycHdNqcnuau78d6t4z71Kg0FQ1+a2EvA+d2N9N4J/HH30XqAE4Crqmox8BPgd7r723yW3r3UTweuAYbmk9nSmAN33UVqUoB/290x9VV6t/Mdu03ypqr6n93yfwb+FfAt4E3A2u69YQa9u1dKQ8XQlyZ2Eb17qJxeVduSPAHM7taNv3dJ0XuTeLCq3rLvSpQmz+kdaWKHAZu7wH8n8Et9645JMhbu/wL4K+BRYMFYe5KZSU7apxVLu8HQlyb2JWAkyfeB9wKP9K17lN6X5TwMzAGu7r7W8wLgyiTfo3eHxV/ZxzVLu+RdNiWpIR7pS1JDDH1JaoihL0kNMfQlqSGGviQ1xNCXpIYY+pLUkP8LKWxi8D45m+sAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "labels_train = pd.read_csv('../tmp/labels_train.csv')\n",
    "labels_valid = pd.read_csv('../tmp/labels_valid.csv')\n",
    "n_classess = labels_train.label.unique().shape[0]\n",
    "labels_train.groupby(by='label').count().plot()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [],
   "source": [
    "labels_train.label = labels_train.label.apply(lambda x: f'{x:02d}')\n",
    "labels_valid.label = labels_valid.label.apply(lambda x: f'{x:02d}')\n",
    "# labels_train['label_bin'].values = keras.utils.np_utils.to_categorical(\n",
    "#     labels_train.label, n_classess)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Found 40000 validated image filenames belonging to 40 classes.\n",
      "Found 2978 validated image filenames belonging to 40 classes.\n"
     ]
    }
   ],
   "source": [
    "ig = ImageDataGenerator(preprocessing_function=preprocess_img)\n",
    "\n",
    "params_g = dict(\n",
    "    batch_size=batch_size,\n",
    "    # directory=path_data,\n",
    "    # class_mode='other',\n",
    "    x_col='fname',\n",
    "    y_col='label',\n",
    "    target_size=(img_width, img_height),\n",
    "    interpolation='lanczos',\n",
    "    seed=random_seed)\n",
    "\n",
    "train_g = ig.flow_from_dataframe(\n",
    "    labels_train, path_data_train, **params_g)\n",
    "valid_g = ig.flow_from_dataframe(\n",
    "    labels_valid, path_data_valid, **params_g)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [],
   "source": [
    "input_tensor = Input((img_width, img_height, 3))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Downloading data from https://github.com/fchollet/deep-learning-models/releases/download/v0.4/xception_weights_tf_dim_ordering_tf_kernels.h5\n",
      "91889664/91884032 [==============================] - 18s 0us/step\n"
     ]
    }
   ],
   "source": [
    "base_model_InceptionResNetV2 = InceptionResNetV2(weights='imagenet', include_top=True, input_tensor=input_tensor)\n",
    "base_model_Xception = Xception(weights='imagenet', include_top=True, input_tensor=input_tensor)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [],
   "source": [
    "for layer in base_model_InceptionResNetV2.layers:\n",
    "    layer.name = 'InceptionResNetV2_'+layer.name\n",
    "for layer in base_model_Xception.layers:\n",
    "    layer.name = 'Xception_'+layer.name"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "a = base_model_InceptionResNetV2.output\n",
    "b = base_model_Xception.output\n",
    "\n",
    "# a = GlobalAveragePooling2D()(a)\n",
    "# b = GlobalAveragePooling2D()(b)\n",
    "\n",
    "x = Concatenate(axis=-1)([a,b])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Please use `rate` instead of `keep_prob`. Rate should be set to `rate = 1 - keep_prob`.\n",
      "__________________________________________________________________________________________________\n",
      "Layer (type)                    Output Shape         Param #     Connected to                     \n",
      "==================================================================================================\n",
      "Xception_InceptionResNetV2_inpu (None, 299, 299, 3)  0                                            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_208 (C (None, 149, 149, 32) 864         Xception_InceptionResNetV2_input_\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 149, 149, 32) 96          InceptionResNetV2_conv2d_208[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 149, 149, 32) 0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_209 (C (None, 147, 147, 32) 9216        InceptionResNetV2_activation_204[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 147, 147, 32) 96          InceptionResNetV2_conv2d_209[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 147, 147, 32) 0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_210 (C (None, 147, 147, 64) 18432       InceptionResNetV2_activation_205[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 147, 147, 64) 192         InceptionResNetV2_conv2d_210[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 147, 147, 64) 0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 73, 73, 64)   0           InceptionResNetV2_activation_206[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_211 (C (None, 73, 73, 80)   5120        InceptionResNetV2_max_pooling2d_5\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 73, 73, 80)   240         InceptionResNetV2_conv2d_211[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 73, 73, 80)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_212 (C (None, 71, 71, 192)  138240      InceptionResNetV2_activation_207[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 71, 71, 192)  576         InceptionResNetV2_conv2d_212[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 71, 71, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 35, 35, 192)  0           InceptionResNetV2_activation_208[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_216 (C (None, 35, 35, 64)   12288       InceptionResNetV2_max_pooling2d_6\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_216[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_214 (C (None, 35, 35, 48)   9216        InceptionResNetV2_max_pooling2d_6\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_217 (C (None, 35, 35, 96)   55296       InceptionResNetV2_activation_212[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_214[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 96)   288         InceptionResNetV2_conv2d_217[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 96)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_average_pooli (None, 35, 35, 192)  0           InceptionResNetV2_max_pooling2d_6\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_213 (C (None, 35, 35, 96)   18432       InceptionResNetV2_max_pooling2d_6\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_215 (C (None, 35, 35, 64)   76800       InceptionResNetV2_activation_210[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_218 (C (None, 35, 35, 96)   82944       InceptionResNetV2_activation_213[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_219 (C (None, 35, 35, 64)   12288       InceptionResNetV2_average_pooling\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 96)   288         InceptionResNetV2_conv2d_213[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_215[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 96)   288         InceptionResNetV2_conv2d_218[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_219[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_20 (None, 35, 35, 96)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 96)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_mixed_5b (Con (None, 35, 35, 320)  0           InceptionResNetV2_activation_209[\n",
      "                                                                 InceptionResNetV2_activation_211[\n",
      "                                                                 InceptionResNetV2_activation_214[\n",
      "                                                                 InceptionResNetV2_activation_215[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_223 (C (None, 35, 35, 32)   10240       InceptionResNetV2_mixed_5b[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_223[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_221 (C (None, 35, 35, 32)   10240       InceptionResNetV2_mixed_5b[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_224 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_219[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_221[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_224[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_220 (C (None, 35, 35, 32)   10240       InceptionResNetV2_mixed_5b[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_222 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_217[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_225 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_220[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_220[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_222[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_225[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_21 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_216[\n",
      "                                                                 InceptionResNetV2_activation_218[\n",
      "                                                                 InceptionResNetV2_activation_221[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_1_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1 (La (None, 35, 35, 320)  0           InceptionResNetV2_mixed_5b[0][0] \n",
      "                                                                 InceptionResNetV2_block35_1_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_1_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_1[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_229 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_229[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_227 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_230 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_225[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_227[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_230[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_226 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_228 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_223[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_231 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_226[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_226[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_228[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_231[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_222[\n",
      "                                                                 InceptionResNetV2_activation_224[\n",
      "                                                                 InceptionResNetV2_activation_227[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_2_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_1_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_2_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_2_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_2[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_235 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_235[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_233 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_236 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_231[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_233[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_236[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_232 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_234 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_229[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_237 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_232[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_232[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_234[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_237[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_22 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_228[\n",
      "                                                                 InceptionResNetV2_activation_230[\n",
      "                                                                 InceptionResNetV2_activation_233[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_3_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_2_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_3_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_3_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_3[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_241 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_241[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_239 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_242 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_237[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_239[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_242[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_238 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_240 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_235[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_243 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_238[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_238[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_240[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_243[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_23 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_234[\n",
      "                                                                 InceptionResNetV2_activation_236[\n",
      "                                                                 InceptionResNetV2_activation_239[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_4_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_3_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_4_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_4_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_4[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_247 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_247[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_245 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_248 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_243[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_245[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_248[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_244 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_246 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_241[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_249 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_244[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_244[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_246[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_249[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_240[\n",
      "                                                                 InceptionResNetV2_activation_242[\n",
      "                                                                 InceptionResNetV2_activation_245[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_5_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_4_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_5_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_5_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_5[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_253 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_253[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_251 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_254 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_249[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_251[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_254[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_250 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_252 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_247[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_255 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_250[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_250[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_252[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_255[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_24 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_246[\n",
      "                                                                 InceptionResNetV2_activation_248[\n",
      "                                                                 InceptionResNetV2_activation_251[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_6_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_5_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_6_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_6_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_6[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_259 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_259[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_257 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_260 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_255[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_257[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_260[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_256 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_258 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_253[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_261 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_256[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_256[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_258[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_261[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_252[\n",
      "                                                                 InceptionResNetV2_activation_254[\n",
      "                                                                 InceptionResNetV2_activation_257[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_7_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_6_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_7_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_7_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_7[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_265 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_265[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_263 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_266 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_261[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_263[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_266[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_262 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_264 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_259[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_267 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_262[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_262[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_264[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_267[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_25 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_258[\n",
      "                                                                 InceptionResNetV2_activation_260[\n",
      "                                                                 InceptionResNetV2_activation_263[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_8_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_7_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_8_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_8_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_8[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_271 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_271[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_269 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_272 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_267[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_269[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_272[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_268 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_270 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_265[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_273 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_268[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_268[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_270[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_273[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_26 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9_mix (None, 35, 35, 128)  0           InceptionResNetV2_activation_264[\n",
      "                                                                 InceptionResNetV2_activation_266[\n",
      "                                                                 InceptionResNetV2_activation_269[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9_con (None, 35, 35, 320)  41280       InceptionResNetV2_block35_9_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9 (La (None, 35, 35, 320)  0           InceptionResNetV2_block35_8_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_9_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_9_ac  (None, 35, 35, 320)  0           InceptionResNetV2_block35_9[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_277 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_277[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_275 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_278 (C (None, 35, 35, 48)   13824       InceptionResNetV2_activation_273[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_275[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 48)   144         InceptionResNetV2_conv2d_278[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 48)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_274 (C (None, 35, 35, 32)   10240       InceptionResNetV2_block35_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_276 (C (None, 35, 35, 32)   9216        InceptionResNetV2_activation_271[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_279 (C (None, 35, 35, 64)   27648       InceptionResNetV2_activation_274[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_274[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 32)   96          InceptionResNetV2_conv2d_276[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 64)   192         InceptionResNetV2_conv2d_279[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 32)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 64)   0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10_mi (None, 35, 35, 128)  0           InceptionResNetV2_activation_270[\n",
      "                                                                 InceptionResNetV2_activation_272[\n",
      "                                                                 InceptionResNetV2_activation_275[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10_co (None, 35, 35, 320)  41280       InceptionResNetV2_block35_10_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10 (L (None, 35, 35, 320)  0           InceptionResNetV2_block35_9_ac[0]\n",
      "                                                                 InceptionResNetV2_block35_10_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block35_10_ac (None, 35, 35, 320)  0           InceptionResNetV2_block35_10[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_281 (C (None, 35, 35, 256)  81920       InceptionResNetV2_block35_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 256)  768         InceptionResNetV2_conv2d_281[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_282 (C (None, 35, 35, 256)  589824      InceptionResNetV2_activation_277[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 35, 35, 256)  768         InceptionResNetV2_conv2d_282[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 35, 35, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_280 (C (None, 17, 17, 384)  1105920     InceptionResNetV2_block35_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_283 (C (None, 17, 17, 384)  884736      InceptionResNetV2_activation_278[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 384)  1152        InceptionResNetV2_conv2d_280[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 384)  1152        InceptionResNetV2_conv2d_283[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 17, 17, 384)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_27 (None, 17, 17, 384)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 17, 17, 320)  0           InceptionResNetV2_block35_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_mixed_6a (Con (None, 17, 17, 1088) 0           InceptionResNetV2_activation_276[\n",
      "                                                                 InceptionResNetV2_activation_279[\n",
      "                                                                 InceptionResNetV2_max_pooling2d_7\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_285 (C (None, 17, 17, 128)  139264      InceptionResNetV2_mixed_6a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_285[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_286 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_281[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_286[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_284 (C (None, 17, 17, 192)  208896      InceptionResNetV2_mixed_6a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_287 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_282[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_284[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_287[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_280[\n",
      "                                                                 InceptionResNetV2_activation_283[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_1_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1 (La (None, 17, 17, 1088) 0           InceptionResNetV2_mixed_6a[0][0] \n",
      "                                                                 InceptionResNetV2_block17_1_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_1_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_1[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_289 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_289[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_290 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_285[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_290[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_288 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_1_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_291 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_286[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_288[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_291[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_284[\n",
      "                                                                 InceptionResNetV2_activation_287[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_2_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_1_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_2_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_2_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_2[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_293 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_293[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_294 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_289[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_294[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_292 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_2_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_295 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_290[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_292[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_295[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_28 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_288[\n",
      "                                                                 InceptionResNetV2_activation_291[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_3_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_2_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_3_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_3_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_3[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_297 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_297[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_298 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_293[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_298[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_296 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_3_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_299 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_294[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_296[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_299[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_292[\n",
      "                                                                 InceptionResNetV2_activation_295[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_4_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_3_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_4_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_4_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_4[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_301 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_301[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_302 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_297[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_302[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_300 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_4_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_303 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_298[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_300[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_303[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_29 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_296[\n",
      "                                                                 InceptionResNetV2_activation_299[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_5_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_4_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_5_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_5_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_5[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_305 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_305[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_306 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_301[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_306[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_304 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_5_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_307 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_302[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_304[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_307[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_300[\n",
      "                                                                 InceptionResNetV2_activation_303[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_6_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_5_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_6_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_6_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_6[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_309 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_309[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_310 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_305[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_310[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_308 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_6_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_311 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_306[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_308[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_311[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_304[\n",
      "                                                                 InceptionResNetV2_activation_307[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_7_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_6_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_7_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_7_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_7[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_313 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_313[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_314 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_309[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_314[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_312 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_7_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_315 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_310[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_312[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_315[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_30 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_308[\n",
      "                                                                 InceptionResNetV2_activation_311[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_8_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_7_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_8_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_8_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_8[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_317 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_317[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_318 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_313[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_318[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_316 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_8_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_319 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_314[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_316[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_319[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9_mix (None, 17, 17, 384)  0           InceptionResNetV2_activation_312[\n",
      "                                                                 InceptionResNetV2_activation_315[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9_con (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_9_mixed\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9 (La (None, 17, 17, 1088) 0           InceptionResNetV2_block17_8_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_9_conv[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_9_ac  (None, 17, 17, 1088) 0           InceptionResNetV2_block17_9[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_321 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_321[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_322 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_317[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_322[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_320 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_9_ac[0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_323 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_318[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_320[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_323[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_31 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_316[\n",
      "                                                                 InceptionResNetV2_activation_319[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_10_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_9_ac[0]\n",
      "                                                                 InceptionResNetV2_block17_10_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_10_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_10[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_325 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_325[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_326 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_321[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_326[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_324 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_10_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_327 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_322[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_324[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_327[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_320[\n",
      "                                                                 InceptionResNetV2_activation_323[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_11_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_10_ac[0\n",
      "                                                                 InceptionResNetV2_block17_11_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_11_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_11[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_329 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_11_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_329[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_330 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_325[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_330[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_328 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_11_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_331 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_326[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_328[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_331[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_324[\n",
      "                                                                 InceptionResNetV2_activation_327[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_12_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_11_ac[0\n",
      "                                                                 InceptionResNetV2_block17_12_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_12_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_12[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_333 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_12_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_333[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_334 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_329[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_334[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_332 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_12_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_335 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_330[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_332[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_335[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_32 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_328[\n",
      "                                                                 InceptionResNetV2_activation_331[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_13_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_12_ac[0\n",
      "                                                                 InceptionResNetV2_block17_13_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_13_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_13[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_337 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_13_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_337[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_338 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_333[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_338[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_336 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_13_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_339 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_334[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_336[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_339[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_332[\n",
      "                                                                 InceptionResNetV2_activation_335[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_14_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_13_ac[0\n",
      "                                                                 InceptionResNetV2_block17_14_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_14_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_14[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_341 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_14_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_341[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_342 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_337[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_342[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_340 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_14_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_343 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_338[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_340[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_343[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_33 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_336[\n",
      "                                                                 InceptionResNetV2_activation_339[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_15_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_14_ac[0\n",
      "                                                                 InceptionResNetV2_block17_15_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_15_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_15[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_345 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_15_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_345[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_346 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_341[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_346[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_344 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_15_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_347 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_342[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_344[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_347[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_340[\n",
      "                                                                 InceptionResNetV2_activation_343[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_16_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_15_ac[0\n",
      "                                                                 InceptionResNetV2_block17_16_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_16_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_16[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_349 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_16_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_349[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_350 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_345[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_350[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_348 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_16_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_351 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_346[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_348[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_351[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_344[\n",
      "                                                                 InceptionResNetV2_activation_347[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_17_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_16_ac[0\n",
      "                                                                 InceptionResNetV2_block17_17_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_17_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_17[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_353 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_17_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_353[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_354 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_349[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_354[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_352 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_17_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_355 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_350[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_352[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_355[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_34 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_348[\n",
      "                                                                 InceptionResNetV2_activation_351[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_18_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_17_ac[0\n",
      "                                                                 InceptionResNetV2_block17_18_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_18_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_18[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_357 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_18_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_357[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_358 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_353[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_358[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_356 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_18_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_359 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_354[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_356[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_359[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_352[\n",
      "                                                                 InceptionResNetV2_activation_355[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_19_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_18_ac[0\n",
      "                                                                 InceptionResNetV2_block17_19_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_19_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_19[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_361 (C (None, 17, 17, 128)  139264      InceptionResNetV2_block17_19_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 128)  384         InceptionResNetV2_conv2d_361[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 128)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_362 (C (None, 17, 17, 160)  143360      InceptionResNetV2_activation_357[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 160)  480         InceptionResNetV2_conv2d_362[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 160)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_360 (C (None, 17, 17, 192)  208896      InceptionResNetV2_block17_19_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_363 (C (None, 17, 17, 192)  215040      InceptionResNetV2_activation_358[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_360[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 192)  576         InceptionResNetV2_conv2d_363[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_35 (None, 17, 17, 192)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20_mi (None, 17, 17, 384)  0           InceptionResNetV2_activation_356[\n",
      "                                                                 InceptionResNetV2_activation_359[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20_co (None, 17, 17, 1088) 418880      InceptionResNetV2_block17_20_mixe\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20 (L (None, 17, 17, 1088) 0           InceptionResNetV2_block17_19_ac[0\n",
      "                                                                 InceptionResNetV2_block17_20_conv\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block17_20_ac (None, 17, 17, 1088) 0           InceptionResNetV2_block17_20[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_368 (C (None, 17, 17, 256)  278528      InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 256)  768         InceptionResNetV2_conv2d_368[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 17, 17, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_364 (C (None, 17, 17, 256)  278528      InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_366 (C (None, 17, 17, 256)  278528      InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_369 (C (None, 17, 17, 288)  663552      InceptionResNetV2_activation_364[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 256)  768         InceptionResNetV2_conv2d_364[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 256)  768         InceptionResNetV2_conv2d_366[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 17, 17, 288)  864         InceptionResNetV2_conv2d_369[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 17, 17, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 17, 17, 256)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 17, 17, 288)  0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_365 (C (None, 8, 8, 384)    884736      InceptionResNetV2_activation_360[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_367 (C (None, 8, 8, 288)    663552      InceptionResNetV2_activation_362[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_370 (C (None, 8, 8, 320)    829440      InceptionResNetV2_activation_365[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 384)    1152        InceptionResNetV2_conv2d_365[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 288)    864         InceptionResNetV2_conv2d_367[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 320)    960         InceptionResNetV2_conv2d_370[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 8, 8, 384)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 8, 8, 288)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 8, 8, 320)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_max_pooling2d (None, 8, 8, 1088)   0           InceptionResNetV2_block17_20_ac[0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_mixed_7a (Con (None, 8, 8, 2080)   0           InceptionResNetV2_activation_361[\n",
      "                                                                 InceptionResNetV2_activation_363[\n",
      "                                                                 InceptionResNetV2_activation_366[\n",
      "                                                                 InceptionResNetV2_max_pooling2d_8\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_372 (C (None, 8, 8, 192)    399360      InceptionResNetV2_mixed_7a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_372[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_373 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_368[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_373[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_371 (C (None, 8, 8, 192)    399360      InceptionResNetV2_mixed_7a[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_374 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_369[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_371[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_374[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_36 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_367[\n",
      "                                                                 InceptionResNetV2_activation_370[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv1 (Conv2D)  (None, 149, 149, 32) 864         Xception_InceptionResNetV2_input_\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_1_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv1_bn (Batch (None, 149, 149, 32) 128         Xception_block1_conv1[0][0]      \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_1 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_mixed_7a[0][0] \n",
      "                                                                 InceptionResNetV2_block8_1_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv1_act (Acti (None, 149, 149, 32) 0           Xception_block1_conv1_bn[0][0]   \n",
      "__________________________________________________________________________________________________\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "InceptionResNetV2_block8_1_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_1[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv2 (Conv2D)  (None, 147, 147, 64) 18432       Xception_block1_conv1_act[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_376 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_1_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv2_bn (Batch (None, 147, 147, 64) 256         Xception_block1_conv2[0][0]      \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_376[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block1_conv2_act (Acti (None, 147, 147, 64) 0           Xception_block1_conv2_bn[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv1 (Separ (None, 147, 147, 128 8768        Xception_block1_conv2_act[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_377 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_372[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv1_bn (Ba (None, 147, 147, 128 512         Xception_block2_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_377[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv2_act (A (None, 147, 147, 128 0           Xception_block2_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv2 (Separ (None, 147, 147, 128 17536       Xception_block2_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_375 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_1_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_378 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_373[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_sepconv2_bn (Ba (None, 147, 147, 128 512         Xception_block2_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_411 (Conv2D)    (None, 74, 74, 128)  8192        Xception_block1_conv2_act[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_375[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_378[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block2_pool (MaxPoolin (None, 74, 74, 128)  0           Xception_block2_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_41 (None, 74, 74, 128)  512         Xception_conv2d_411[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_14 (Add)           (None, 74, 74, 128)  0           Xception_block2_pool[0][0]       \n",
      "                                                                 Xception_batch_normalization_411[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_371[\n",
      "                                                                 InceptionResNetV2_activation_374[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv1_act (A (None, 74, 74, 128)  0           Xception_add_14[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_2_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv1 (Separ (None, 74, 74, 256)  33920       Xception_block3_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_1_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_2_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv1_bn (Ba (None, 74, 74, 256)  1024        Xception_block3_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_2_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_2[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv2_act (A (None, 74, 74, 256)  0           Xception_block3_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_380 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_2_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv2 (Separ (None, 74, 74, 256)  67840       Xception_block3_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_380[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_sepconv2_bn (Ba (None, 74, 74, 256)  1024        Xception_block3_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_412 (Conv2D)    (None, 37, 37, 256)  32768       Xception_add_14[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block3_pool (MaxPoolin (None, 37, 37, 256)  0           Xception_block3_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_41 (None, 37, 37, 256)  1024        Xception_conv2d_412[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_381 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_376[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_15 (Add)           (None, 37, 37, 256)  0           Xception_block3_pool[0][0]       \n",
      "                                                                 Xception_batch_normalization_412[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_381[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv1_act (A (None, 37, 37, 256)  0           Xception_add_15[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv1 (Separ (None, 37, 37, 728)  188672      Xception_block4_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_379 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_2_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_382 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_377[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv1_bn (Ba (None, 37, 37, 728)  2912        Xception_block4_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_379[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_382[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv2_act (A (None, 37, 37, 728)  0           Xception_block4_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv2 (Separ (None, 37, 37, 728)  536536      Xception_block4_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_375[\n",
      "                                                                 InceptionResNetV2_activation_378[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_sepconv2_bn (Ba (None, 37, 37, 728)  2912        Xception_block4_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_413 (Conv2D)    (None, 19, 19, 728)  186368      Xception_add_15[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_3_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block4_pool (MaxPoolin (None, 19, 19, 728)  0           Xception_block4_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_41 (None, 19, 19, 728)  2912        Xception_conv2d_413[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_2_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_3_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_16 (Add)           (None, 19, 19, 728)  0           Xception_block4_pool[0][0]       \n",
      "                                                                 Xception_batch_normalization_413[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_3_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_3[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_16[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_384 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_3_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block5_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_384[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block5_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block5_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_385 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_380[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block5_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_385[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block5_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block5_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_383 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_3_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_386 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_381[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block5_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_383[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_386[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block5_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block5_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_37 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_17 (Add)           (None, 19, 19, 728)  0           Xception_block5_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_16[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_379[\n",
      "                                                                 InceptionResNetV2_activation_382[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_17[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_4_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block6_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_3_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_4_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block6_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_4_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_4[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block6_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_388 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_4_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block6_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_388[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block6_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block6_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_389 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_384[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block6_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_389[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block6_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block6_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_18 (Add)           (None, 19, 19, 728)  0           Xception_block6_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_17[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_387 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_4_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_390 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_385[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_18[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_387[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_390[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block7_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block7_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_383[\n",
      "                                                                 InceptionResNetV2_activation_386[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block7_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_5_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block7_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_4_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_5_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block7_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_5_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_5[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block7_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_392 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_5_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block7_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_392[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block7_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block7_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_19 (Add)           (None, 19, 19, 728)  0           Xception_block7_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_18[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_393 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_388[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_19[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_393[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block8_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block8_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_391 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_5_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_394 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_389[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block8_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_391[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_394[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block8_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_38 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block8_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_387[\n",
      "                                                                 InceptionResNetV2_activation_390[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block8_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_6_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block8_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_5_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_6_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block8_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block8_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_6_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_6[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_20 (Add)           (None, 19, 19, 728)  0           Xception_block8_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_19[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_396 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_6_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv1_act (A (None, 19, 19, 728)  0           Xception_add_20[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_396[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv1 (Separ (None, 19, 19, 728)  536536      Xception_block9_sepconv1_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv1_bn (Ba (None, 19, 19, 728)  2912        Xception_block9_sepconv1[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_397 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_392[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv2_act (A (None, 19, 19, 728)  0           Xception_block9_sepconv1_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_397[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv2 (Separ (None, 19, 19, 728)  536536      Xception_block9_sepconv2_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv2_bn (Ba (None, 19, 19, 728)  2912        Xception_block9_sepconv2[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_395 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_6_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_398 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_393[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv3_act (A (None, 19, 19, 728)  0           Xception_block9_sepconv2_bn[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_395[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_398[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv3 (Separ (None, 19, 19, 728)  536536      Xception_block9_sepconv3_act[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block9_sepconv3_bn (Ba (None, 19, 19, 728)  2912        Xception_block9_sepconv3[0][0]   \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_391[\n",
      "                                                                 InceptionResNetV2_activation_394[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_21 (Add)           (None, 19, 19, 728)  0           Xception_block9_sepconv3_bn[0][0]\n",
      "                                                                 Xception_add_20[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_7_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_21[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_6_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_7_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block10_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_7_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_7[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block10_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_400 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_7_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block10_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_400[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv2 (Sepa (None, 19, 19, 728)  536536      Xception_block10_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv2_bn (B (None, 19, 19, 728)  2912        Xception_block10_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_401 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_396[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv3_act ( (None, 19, 19, 728)  0           Xception_block10_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_401[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv3 (Sepa (None, 19, 19, 728)  536536      Xception_block10_sepconv3_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block10_sepconv3_bn (B (None, 19, 19, 728)  2912        Xception_block10_sepconv3[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_399 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_7_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_402 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_397[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_22 (Add)           (None, 19, 19, 728)  0           Xception_block10_sepconv3_bn[0][0\n",
      "                                                                 Xception_add_21[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_399[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_402[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_22[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block11_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_395[\n",
      "                                                                 InceptionResNetV2_activation_398[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block11_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_8_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block11_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_7_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_8_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv2 (Sepa (None, 19, 19, 728)  536536      Xception_block11_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_8_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_8[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv2_bn (B (None, 19, 19, 728)  2912        Xception_block11_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_404 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_8_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv3_act ( (None, 19, 19, 728)  0           Xception_block11_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_404[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv3 (Sepa (None, 19, 19, 728)  536536      Xception_block11_sepconv3_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block11_sepconv3_bn (B (None, 19, 19, 728)  2912        Xception_block11_sepconv3[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_405 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_400[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_23 (Add)           (None, 19, 19, 728)  0           Xception_block11_sepconv3_bn[0][0\n",
      "                                                                 Xception_add_22[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_405[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_23[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block12_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_403 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_8_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_406 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_401[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block12_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_403[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_406[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block12_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_39 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv2 (Sepa (None, 19, 19, 728)  536536      Xception_block12_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9_mixe (None, 8, 8, 448)    0           InceptionResNetV2_activation_399[\n",
      "                                                                 InceptionResNetV2_activation_402[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv2_bn (B (None, 19, 19, 728)  2912        Xception_block12_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9_conv (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_9_mixed[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv3_act ( (None, 19, 19, 728)  0           Xception_block12_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9 (Lam (None, 8, 8, 2080)   0           InceptionResNetV2_block8_8_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_9_conv[0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv3 (Sepa (None, 19, 19, 728)  536536      Xception_block12_sepconv3_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_9_ac ( (None, 8, 8, 2080)   0           InceptionResNetV2_block8_9[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block12_sepconv3_bn (B (None, 19, 19, 728)  2912        Xception_block12_sepconv3[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_408 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_9_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_24 (Add)           (None, 19, 19, 728)  0           Xception_block12_sepconv3_bn[0][0\n",
      "                                                                 Xception_add_23[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_408[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv1_act ( (None, 19, 19, 728)  0           Xception_add_24[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv1 (Sepa (None, 19, 19, 728)  536536      Xception_block13_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_409 (C (None, 8, 8, 224)    129024      InceptionResNetV2_activation_404[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv1_bn (B (None, 19, 19, 728)  2912        Xception_block13_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 224)    672         InceptionResNetV2_conv2d_409[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv2_act ( (None, 19, 19, 728)  0           Xception_block13_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 224)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv2 (Sepa (None, 19, 19, 1024) 752024      Xception_block13_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_407 (C (None, 8, 8, 192)    399360      InceptionResNetV2_block8_9_ac[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv2d_410 (C (None, 8, 8, 256)    172032      InceptionResNetV2_activation_405[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_sepconv2_bn (B (None, 19, 19, 1024) 4096        Xception_block13_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "Xception_conv2d_414 (Conv2D)    (None, 10, 10, 1024) 745472      Xception_add_24[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 192)    576         InceptionResNetV2_conv2d_407[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_batch_normali (None, 8, 8, 256)    768         InceptionResNetV2_conv2d_410[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block13_pool (MaxPooli (None, 10, 10, 1024) 0           Xception_block13_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_batch_normalization_41 (None, 10, 10, 1024) 4096        Xception_conv2d_414[0][0]        \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 192)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_activation_40 (None, 8, 8, 256)    0           InceptionResNetV2_batch_normaliza\n",
      "__________________________________________________________________________________________________\n",
      "Xception_add_25 (Add)           (None, 10, 10, 1024) 0           Xception_block13_pool[0][0]      \n",
      "                                                                 Xception_batch_normalization_414[\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_10_mix (None, 8, 8, 448)    0           InceptionResNetV2_activation_403[\n",
      "                                                                 InceptionResNetV2_activation_406[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv1 (Sepa (None, 10, 10, 1536) 1582080     Xception_add_25[0][0]            \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_10_con (None, 8, 8, 2080)   933920      InceptionResNetV2_block8_10_mixed\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv1_bn (B (None, 10, 10, 1536) 6144        Xception_block14_sepconv1[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_block8_10 (La (None, 8, 8, 2080)   0           InceptionResNetV2_block8_9_ac[0][\n",
      "                                                                 InceptionResNetV2_block8_10_conv[\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv1_act ( (None, 10, 10, 1536) 0           Xception_block14_sepconv1_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv_7b (Conv (None, 8, 8, 1536)   3194880     InceptionResNetV2_block8_10[0][0]\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv2 (Sepa (None, 10, 10, 2048) 3159552     Xception_block14_sepconv1_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv_7b_bn (B (None, 8, 8, 1536)   4608        InceptionResNetV2_conv_7b[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv2_bn (B (None, 10, 10, 2048) 8192        Xception_block14_sepconv2[0][0]  \n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_conv_7b_ac (A (None, 8, 8, 1536)   0           InceptionResNetV2_conv_7b_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_block14_sepconv2_act ( (None, 10, 10, 2048) 0           Xception_block14_sepconv2_bn[0][0\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_avg_pool (Glo (None, 1536)         0           InceptionResNetV2_conv_7b_ac[0][0\n",
      "__________________________________________________________________________________________________\n",
      "Xception_avg_pool (GlobalAverag (None, 2048)         0           Xception_block14_sepconv2_act[0][\n",
      "__________________________________________________________________________________________________\n",
      "InceptionResNetV2_predictions ( (None, 1000)         1537000     InceptionResNetV2_avg_pool[0][0] \n",
      "__________________________________________________________________________________________________\n",
      "Xception_predictions (Dense)    (None, 1000)         2049000     Xception_avg_pool[0][0]          \n",
      "__________________________________________________________________________________________________\n",
      "concatenate_1 (Concatenate)     (None, 2000)         0           InceptionResNetV2_predictions[0][\n",
      "                                                                 Xception_predictions[0][0]       \n",
      "__________________________________________________________________________________________________\n",
      "dense_1 (Dense)                 (None, 128)          256128      concatenate_1[0][0]              \n",
      "__________________________________________________________________________________________________\n",
      "dropout_1 (Dropout)             (None, 128)          0           dense_1[0][0]                    \n",
      "__________________________________________________________________________________________________\n",
      "dense_2 (Dense)                 (None, 40)           5160        dropout_1[0][0]                  \n",
      "==================================================================================================\n",
      "Total params: 79,045,504\n",
      "Trainable params: 78,930,432\n",
      "Non-trainable params: 115,072\n",
      "__________________________________________________________________________________________________\n"
     ]
    }
   ],
   "source": [
    "x = Dense(128, activation='relu')(x)\n",
    "x = Dropout(0.3)(x)\n",
    "\n",
    "predictions = Dense(n_classess, activation='softmax')(x)\n",
    "model = Model(inputs=input_tensor, outputs=predictions)\n",
    "model.summary()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {},
   "outputs": [],
   "source": [
    "with open(f'../tmp/model_{__file__}.json','w') as f:\n",
    "    model_json = model.to_json()\n",
    "    f.write(model_json)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "metadata": {},
   "outputs": [],
   "source": [
    "ckpt = ModelCheckpoint('../tmp/ckpt-'+__file__+'-Epoch_{epoch:03d}-acc_{acc:.5f}-val_acc_{val_acc:.5f}.h5', save_best_only=True, monitor='val_acc')\n",
    "\n",
    "estop = EarlyStopping(monitor='val_acc', min_delta=1e-7,verbose=1, patience=20)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/math_ops.py:3066: to_int32 (from tensorflow.python.ops.math_ops) is deprecated and will be removed in a future version.\n",
      "Instructions for updating:\n",
      "Use tf.cast instead.\n",
      "Epoch 1/100\n",
      "2500/2500 [==============================] - 2005s 802ms/step - loss: 3.6316 - acc: 0.2463 - val_loss: 3.5630 - val_acc: 0.5239\n",
      "Epoch 2/100\n",
      "2500/2500 [==============================] - 1958s 783ms/step - loss: 3.4843 - acc: 0.5552 - val_loss: 3.3966 - val_acc: 0.6236\n",
      "Epoch 3/100\n",
      "2500/2500 [==============================] - 1968s 787ms/step - loss: 3.2836 - acc: 0.6655 - val_loss: 3.1732 - val_acc: 0.6810\n",
      "Epoch 4/100\n",
      "2500/2500 [==============================] - 1966s 786ms/step - loss: 3.0323 - acc: 0.7226 - val_loss: 2.9105 - val_acc: 0.7242\n",
      "Epoch 5/100\n",
      "2500/2500 [==============================] - 1960s 784ms/step - loss: 2.7365 - acc: 0.7622 - val_loss: 2.6204 - val_acc: 0.7370\n",
      "Epoch 6/100\n",
      "2500/2500 [==============================] - 1965s 786ms/step - loss: 2.4062 - acc: 0.7909 - val_loss: 2.2944 - val_acc: 0.7495\n",
      "Epoch 7/100\n",
      "2499/2500 [============================>.] - ETA: 0s - loss: 2.0607 - acc: 0.8122"
     ]
    }
   ],
   "source": [
    "model.compile(optimizer=Adam(lr=1e-5), loss='categorical_crossentropy', metrics=['accuracy'])\n",
    "\n",
    "model.fit_generator(\n",
    "    train_g,\n",
    "    # steps_per_epoch=100,\n",
    "    steps_per_epoch=train_g.n // batch_size,\n",
    "    epochs=100,\n",
    "    callbacks=[ckpt, estop],\n",
    "    validation_data=valid_g,\n",
    "    # validation_steps=1,\n",
    "    validation_steps=valid_g.n // batch_size\n",
    ")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "batch_size"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
